package com.kede.app.repository;

import com.kede.app.domain.LeescoreOrderGoods;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
* @author Pr.li
* @date 2023-05-12
**/
public interface LeescoreOrderGoodsRepository extends JpaRepository<LeescoreOrderGoods, Integer>, JpaSpecificationExecutor<LeescoreOrderGoods> {

    public List<LeescoreOrderGoods> findAllByOrderId(Integer orderId);

    @Query(value = "")
    public List<LeescoreOrderGoods> findAllByOrderIdOrderByOrderStatus(Integer orderId);

}